import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024-10-01
 * Time: 20:17
 */
public class IODemon3 {
    public static void main(String[] args) throws IOException, InterruptedException {
        File file = new File("./test.txt");
        //boolean ret = file.delete();//删除文件
        //System.out.println(ret);
        boolean ret = file.createNewFile();//创建文件

        file.deleteOnExit();//返回值为void类型，退出的时候删除文件，测试的时候注意看左边的目录栏
        Thread.sleep(5000);



    }


}
